# ifndef DEF_EQUIPMENT
# define DEF_EQUIPMENT

# include "Source.h"

class Equipment
{
	public:

	Equipment();
	~Equipment();

	unsigned int getDamageMin();
	unsigned int getDamageMax();
	unsigned int getChance();
	unsigned int getArmor();

	void init( Renderer*, Hero*);

	void equip( Weapon*);
	void equip( Shield*);
	void equip( Armor*);
	void equip( Jewel*);

	Weapon* findActualWeapon();
	Shield* findActualShield();
	Armor* findActualArmor( unsigned int);
	Jewel* findActualJewel( unsigned int);

	private:

	Renderer* myRenderer;
	Hero* myHero;

	Weapon* myWeapon;
	Shield* myShield;

	unsigned int myDamageMin;
	unsigned int myDamageMax;
	unsigned int myChance;

	Armor* myHeadArmor;
	Armor* myBodyArmor;
	Armor* myArmsArmor;
	Armor* myHipsArmor;
	Armor* myFeetArmor;

	unsigned int myArmor;

	Jewel* myNecklace;
	Jewel* myRing1;
	Jewel* myRing2;

	Ogre::Entity* myWeaponMesh;
	Ogre::Entity* myShieldMesh;

	Ogre::Entity* myHeadMesh;
	Ogre::Entity* myBodyMesh;
	Ogre::Entity* myArmsMesh;
	Ogre::Entity* myHipsMesh;
	Ogre::Entity* myFeetMesh;
};

# endif